// 引入 request 文件
import request from '@/utils/base.js'

// 生成图片
export function drawPaint(data) {
	return request({
		method: 'POST',
		data,
		url: '/ai/draw/drawingProduction',
		type: 1
	})
}

// taskId获取图片地址
export function getDrawUrl(data) {
	return request({
		method: 'POST',
		data,
		url: '/ai/draw/fetchTaskStatus',
		type: 1
	})
}


// 获取历史记录
export function getRecordList (data) {
	return request({
		method: 'POST',
		data,
		url: '/ai/draw/createRecordList',
		type: 1
	})
}